home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / rexx / alertmessagessay.avm < prev    next >
Text File  |  1995-03-09  |  354b  |  16 lines

  1. /* */
  2.  
  3. parse arg numVoiceMessages .
  4.  
  5. avmbusy = getclip('AVMBusy')
  6. if avmbusy = "" | avmbusy = "0" then do
  7.     if (numVoiceMessages = 1) then
  8.       address command "run >nil: <nil: sys:utilities/say 'you have a message.'"
  9.  
  10.     if (numVoiceMessages > 1) then
  11.       address command "run >nil: <nil: sys:utilities/say 'you have" numVoiceMessages "messages.'"
  12. end
  13.  
  14. exit
  15.  
  16.